package java_jc_cs;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;

public class _101{
    int differentDay(LocalDate D1,LocalDate D2){
        long until = D1.until(D2, ChronoUnit.DAYS);
        if (until<0){
            until=-until;
        }
        System.out.println("相差"+until+"天");
        return (int)until;
    }
}